package com.usian.service;

import com.usian.pojo.TbContent;
import com.usian.pojo.TbContentCategory;
import com.usian.utils.AdNode;
import com.usian.utils.PageResult;

import java.util.List;

public interface ContentService {

    List<TbContentCategory> selectContentCategoryByParentId(Long id);

    Boolean insertContentCategory(Long parentId, String name);

    void deleteContentCategoryById(Long categoryId);

    Boolean updateContentCategory(Long id, String name);

    PageResult selectTbContentAllByCategoryId(Long categoryId);

    Boolean insertTbContent(TbContent tbContent);

    void deleteContentByIds(Integer[] ids);

    List<AdNode> selectFrontendContentByAD();
}
